<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<body>
<style type="text/css">
	#managementHome{
		padding: 15px;
		background: #fff;
		border-radius: 10px;
	}
	.layui-inline{
		width:50%;
		margin-left: 20%;
	}
	.layui-input-block{
		margin-left: 135px;
	}
	.layui-form-label{
		width: 100px;
	}
</style>
<div id="managementHome">
	<fieldset class="layui-elem-field layui-field-title site-title">
		<legend><a name="fixbar">班务管理</a></legend>
	</fieldset>
	<form id="tbClassForm" method="post" class="layui-form white-bg radius">
		<input type = "hidden" name = "limit" value="${param.limit}">
		<input type = "hidden" name = "page" value="${param.page}">
		<input type="hidden" name="id" value="${model.id}">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">班级</label>
				<div class="layui-input-block">
					<select name = "tbClass.id">
						<c:forEach items="${tbClass}" var = "c">
							<option value="${c.id}" <c:if test='${model.tbClass.id == c.id}'>selected</c:if>>${c.name}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">时间</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" id="time" name="time" value="${model.time}">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">记录人</label>
				<div class="layui-input-block">
					<select name = "student.id">
						<c:forEach items="${student}" var = "c">
							<option value="${c.id}" <c:if test='${model.student.id == c.id}'>selected</c:if>>${c.name}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">学习情况</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="learndiscipline" value="${model.learndiscipline}">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">班委会工作情况</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="workdiscipline" value="${model.workdiscipline}">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">意见</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="recommendation" value="${model.recommendation}">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">班主任建议</label>
				<div class="layui-input-block">
					<input type="text" class="layui-input" name="trecommend" value="${model.trecommend}">
				</div>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	form=layui.form;
	form.render('select');
	
	layui.use('laydate', function(){
		var laydate = layui.laydate;
		laydate.render({
			elem: '#time',
		});
	});
</script>
</body>
